package com.greenline.pay.web.common.json;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.codehaus.jackson.annotate.JsonProperty;

/**
 * @Type ListJsonObject
 * @Desc 操作的json传输对象
 * @author weirui.shenwr
 * @param <T>
 * @date 2012-3-23
 * @Version V1.0
 */
public class RowsJsonData<T> extends BaseJson {
    public RowsJsonData() {
        super();
    }

    public RowsJsonData(String errroMessage) {
        super(errroMessage);
    }

    /**
     * 对象
     */
    @JsonProperty("Rows")
    private List<T> rows;
    @JsonProperty("Total")
    private int total;
    private final Map<String, Object> paramsMap = new HashMap<String, Object>();

    /**
     * @return the rows
     */
    public List<T> getRows() {
        return rows;
    }

    /**
     * @param rows the rows to set
     */
    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    /**
     * @return the total
     */
    public int getTotal() {
        return total;
    }

    /**
     * @param total the total to set
     */
    public void setTotal(int total) {
        this.total = total;
    }

    /**
     * @return the paramsMap
     */
    public Map<String, Object> getParamsMap() {
        return paramsMap;
    }

}
